import { Component, EventEmitter } from "@angular/core";

@Component({
  selector: "news-lists",
  templateUrl: "news-lists.component.html",
  styleUrls: ["news-lists.component.less"],
  inputs: ["data", "type"],
  outputs: ["loadMore"]
})
export class NewsListsComponent {
  loadMore = new EventEmitter<number>();

  loadMoreNews () {
    this.loadMore.emit()
  }
}